const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 获取token
  name: state => state.user.userInfo.username, // 获取用户的名称
  staffPhoto: state => state.user.userInfo.staffPhoto // 获取用户的照片
}
export default getters